(byte-compile-unfold-lambda): Don't
authorGerd Moellmann <gerd@gnu.org>
Tue, 14 Nov 2000 04:40:01 +0000 (04:40 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 14 Nov 2000 04:40:01 +0000 (04:40 +0000)
recursively optimize body because that can lead to infinite
recursion; see comment there.

lisp/emacs-lisp/byte-opt.el

index c3c8e6772395baa670c9ec0a14f4d41fe5d65ece..da69538660482b8b64c2decb0638501eaff5677e 100644 (file)
                (byte-compile-warn
                 "Attempt to open-code `%s' with too many arguments" name))
            form)
-       (setq body (mapcar 'byte-optimize-form body))
+       
+       ;; The following leads to infinite recursion when loading a
+       ;; file containing `(defsubst f () (f))', and then trying to
+       ;; byte-compile that file.
+       ;(setq body (mapcar 'byte-optimize-form body)))
+       
        (let ((newform 
               (if bindings
                   (cons 'let (cons (nreverse bindings) body))